#ifndef __INTEVENT_H__
#define __INTEVENT_H__

#include "main.h"
#include "FreeRTOS.h"

typedef enum
{
    EXINT_KEY0 = 0,
    EXINT_KEY1,
    EXINT_KEY2,
    EXINT_KEY3,
    EXINT_MAX
} keyIntId_e;

typedef struct
{
    keyIntId_e keyID;
    bool isPressed;
} keyEvent_t;

void Key0_handler(bool isPressed);
void Key1_handler(bool isPressed);

HAL_StatusTypeDef initKeyIntEventTask(void);
HAL_StatusTypeDef initKeyIntEventQueue(void);

#endif
